import http from "@/http";
import type { addExamInfoParam } from "./ExamModel";

// 新建考试
export const addExamInfoApi = (param: addExamInfoParam) => {
    return http.post("/judge/exam/add", param)
}


// // 编辑考试
// export const editExamInfo = (param: editExamInfoParam) => {
//     return http.post("/judge/exam/edit", param)
// }

// // 删除考试
// export const deleteExamInfo = (param: LoginParam) => {
//     return http.post("/api/auth/login", param)
// }


// 获取考试列表
export const getExamInfo = () => {
    return http.get("/judge/exam/my/created/list")
}

